body {
  padding: 0 2rem;
}

.flex-row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
}

/* 左边栏目录 */

.sidebar {
  width: 256px;
  min-width: 256px;
  font-size: 14px;
}

.sidebar-content {
  position: fixed;
  top: 0px;
  max-height: 100vh;
  overflow: hidden auto;
  padding: 40px 0 40px 8px;
  width: 256px;
  box-sizing: border-box;
}

.catalogue-item-h1 a, .catalogue-item-h2 a, .catalogue-item-h3 a {
  color: #336699;
}

.sidebar-item-h2, .catalogue-item-h2 {
  padding-left: 1rem;
}

.sidebar-item-h3, .catalogue-item-h3 {
  padding-left: 2rem;
}

.siderbar-item-active {
  font-weight: 700;
}

/* 正文内容 */

.content {
  max-width: 1024px;
  min-width: 0px;
  margin: 0 auto;
  padding: 10px 30px 30px 30px;
  height: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow-x: visible;
  flex: 1;
  box-sizing: border-box;
}

h1,h2,h3 {
    font-weight: 700;
}

h1 {
  margin: 1.5rem 0;
  font-size: 1.75rem;
  line-height: 2rem;
  height: 2rem;
  text-align: center;
}

h2 {
  margin: 1.25rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.5rem;
  line-height: 1.75rem;
  height: 1.75rem;
}

h3 {
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5rem;
  height: 1.5rem;
}

nav {
  height: 2rem;
}

nav.head-nav {
  border-bottom: 1px solid #222;
}

nav.foot-nav {
  border-top: 1px solid #222;
}

p, blockquote {
  margin: 0.8rem 0;
}

blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0 15px;
  color: #777;
}

/* 标签 */

span.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0 1rem;
  line-height: 1.6rem;
  margin: 0.2rem 0.6rem 0.2rem 0;
  border-radius: 0.8rem;
  color: #ffffff;
}

/* 类型标签 */

span.class-tag {
  background-color: #0099cc;
}

span.struct-tag {
  background-color: #ff6666;
}

span.interface-tag {
  background-color: #339933;
}

span.enum-tag {
  background-color: #cc6688;
}

span.delegate-tag {
  background-color: #ff9966;
}

/* 状态标签 */

span.static-tag {
  background-color: #cac83f;
}

span.const-tag {
  background-color: #39b471;
}

span.readonly-tag {
  background-color: #40acac;
}

span.sealed-tag {
  background-color: #5c33cc;
}

span.virtual-tag {
  background-color: #808080;
}

span.override-tag {
  background-color: #b83567;
}

span.abstract-tag {
  background-color: #ac3acf;
}

/* 代码 */

span.inline-code {
  display: inline-block;
  background-color: #eee;
  font-family: Consolas;
  border-radius: 0.4rem;
  padding: 0 0.2rem;
  line-height: 1.4rem;
  margin: 0.3rem 0.2rem;
}

div.block-code p {
  font-family: Consolas;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem 0.4rem 0 0;
  margin: 0.5rem 0 0 0;
  background-color: #dfe2e5;
}

div.block-code pre {
  background-color: #eee;
  font-family: Consolas;
  border-radius: 0 0 0.4rem 0.4rem;
  padding: 0.5rem 1rem;
  margin: 0 0 1rem 0;
  /*white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;*/
  overflow-x: auto;
}
